package com.muke.dto;/**
 * Created with IntelliJ IDEA.
 * Date: 2019-10-9.
 * Time: 13:32.
 * Explain:
 *
 * @author hezx
 */

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @ClassName Exposer
 * @Description: 向外暴露秒杀地址
 * @Author hezx
 * @Date 2019-10-9 
 * @Version V1.0
 **/
@Getter
@Setter
@ToString
public class Exposer {

    //是否开启秒杀
    private Boolean exposed;

    //一种加密措施，防止被解析
    private String md5;

    private Long secKillId;

    //系统当前时间 单位 毫秒
    private Long now;

    // 开始时间 单位 毫秒
    private Long start;

    //结束时间 单位 毫秒
    private Long end;

    public Exposer(Boolean exposed, Long secKillId, String md5) {
        this.exposed = exposed;
        this.secKillId = secKillId;
        this.md5 = md5;
    }

    public Exposer(Boolean exposed,  Long secKillId, Long now, Long start, Long end) {
        this.exposed = exposed;
        this.secKillId = secKillId;
        this.now = now;
        this.start = start;
        this.end = end;
    }

    public Exposer(Boolean exposed, Long secKillId) {
        this.exposed = exposed;
        this.secKillId = secKillId;
    }
}
